package com.datatypes;

import java.io.Serializable;
import java.util.Calendar;

 
@SuppressWarnings("serial")
public class Activity implements Serializable{

	private Track senderTrack = null;
	private Track receiverTrack = null;

	private String activity_id = null;
	private String SenderID = null;
	private String receiverID = null;
	private String senderName = null;  
	private String receiverName = null;  
	private boolean closedActivity = false;
	private boolean Synced = false;

	public Activity()
	{
		this.senderTrack = null;
		this.receiverTrack = null;
		this.activity_id = null;
		this.SenderID = null;
		this.receiverID = null;
		this.senderName = null;  
		this.receiverName = null;  
		this.closedActivity = false;
		this.Synced = false;
	}
	
	public Activity(Track senderTrack, String senderID,
			String receiverID, String senderName, String receiverName) {
		super();
		this.senderTrack = senderTrack;
		this.activity_id = senderID+receiverID+(Calendar.getInstance()).getTime().getTime();
		this.SenderID = senderID;
		this.receiverID = receiverID;
		this.senderName = senderName;
		this.receiverName = receiverName;
		this.closedActivity = false;
		this.Synced = false;
	}

	public String getActivity_id() {
		return activity_id;
	}

	public void setActivity_id(String activity_id) {
		this.activity_id = activity_id;
	}

	public Track getSenderTrack() {
		return senderTrack;
	}

	public void setSenderTrack(Track senderTrack) {
		this.senderTrack = senderTrack;
	}

	public String getSenderName() {
		return senderName;
	}

	public void setSenderName(String senderName) {
		this.senderName = senderName;
	}

	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public boolean isImTheSender(String myFB_ID) {
		return SenderID.equals(myFB_ID);
	}

	public Track getReceiverTrack() {
		return receiverTrack;
	}

	public void setReceiverTrack(Track receiverTrack) {
		this.receiverTrack = receiverTrack;
	}

	public String getSenderID() {
		return SenderID;
	}

	public void setSenderID(String senderID) {
		SenderID = senderID;
	}

	public String getReceiverID() {
		return receiverID;
	}

	public void setReceiverID(String receiverID) {
		this.receiverID = receiverID;
	}

	public boolean isClosedActivity() {
		return closedActivity;
	}

	public void setClosedActivity(boolean closedActivity) {
		this.closedActivity = closedActivity;
	}

	public boolean isSynced() {
		return Synced;
	}

	public void setSynced(boolean synced) {
		this.Synced = synced;
	}


}
